home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6291 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.5 KB  |  54 lines

  1. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2
  2. Path: uu4news.netcom.com!friend!news
  3. From: rich@kastle.com (Richard Krehbiel)
  4. Subject: Re: Hungarian notation - whoops!
  5. Message-ID: <1996Feb8.130010.27570@friend.kastle.com>
  6. Sender: news@friend.kastle.com (News)
  7. Reply-To: rich@kastle.com
  8. Organization: Kastle Development Associates
  9. X-Newsreader: Forte Free Agent 1.0.82
  10. References: <30C40F77.53B5@swsbbs.com> <Pine.HPP.3.91.960124153551.24374C-100000@zeezrom.cs.byu.edu> <4e7ifl$et3@goanna.cs.rmit.EDU.AU> <Pine.HPP.3.91.960129133429.8419C-100000@foggy.cs.byu.edu> <4em29qINN39r@keats.ugrad.cs.ubc.ca> <Pine.HPP.3.91.960201015336.17360C-100000@clear.cs.byu.edu> <4f41vf$g8j@goanna.cs.rmit.EDU.AU> <Pine.HPP.3.91.960205124102.18647E-100000@warm.cs.byu.edu> <4fc157$jsf@goanna.cs.rmit.EDU.AU>
  11. Date: Thu, 8 Feb 1996 12:59:39 GMT
  12.  
  13. ok@goanna.cs.rmit.EDU.AU (Richard A. O'Keefe) wrote:
  14.  
  15. >Douglas Evan Cook <cookd@cs.byu.edu> writes:
  16.  
  17. >>Then, when porting to a different platform, you just do whatever it takes 
  18. >>to define INT16 to match the spec.
  19.  
  20. >How often do I have to say _this_?
  21.  
  22. >- There are two (16Mb, recent) computers on my desk.  (One will be going
  23. >  away soon.)
  24. >- There are two other computers in this office.  One needs repair, but
  25. >  has the nicest keyboard I've ever used, and the other needs a 240 volt
  26. >  to 110 volt transformer which I loaned to a friend.
  27. >- I have accounts on three (large, recent) multi-user machines in this
  28. >  department, and am posting from one of them at the moment.
  29.  
  30. >*NONE* of these machines can support a 16-bit little-endian integer type.
  31.  
  32. >I _could_ get an account on a supercomputer if I wanted to.  I have also
  33. >used a couple of mainframes.  None of them can support a 16-bit little-
  34. >endian integer type either.  One of the mainframes was not 2s complement
  35. >(it was sign-and-magnitude; I still think having a negative number whose
  36. >absolute value can't be represented is _silly_).  That kind of mainframe
  37. >is still made and still used and still appropriate.,
  38.  
  39. Seriously?  I think you are giving up too early.  He did say "whatever
  40. it takes".
  41.  
  42. A 486SX can do IEEE floating point arithmetic, but it has no floating
  43. point unit.  It does it with software emulation.  C compilers for 8
  44. bit micros can somehow multiply and divide even though the CPU only
  45. has add, subtract, and shift instructions.
  46.  
  47. I suspect that, with a bit of software, even your machines could
  48. implement 16 bit little endian integers.
  49.  
  50. --
  51. Richard Krehbiel, Kastle Systems, Arlington VA USA
  52. rich@kastle.com (work) or richk@mnsinc.com (personal)
  53.  
  54.